#ifndef BASE_BASE_H
#define BASE_BASE_H

#include "base/macro_def.h"
#include "base/scoped_ptr.h"
#include "base/scoped_ref.h"
#include "scoped_ref.h"
#include "base/disk_file.h"
#include "base/file_util.h"

#include "base/thread.h"
#include "base/thread_util.h"

class AutoRun {
  public:
    AutoRun(Closure* c)
        : closure_(c) {
    }
    ~AutoRun() {
      closure_->Run();
    }

    Closure* release() {
      Closure* tmp = closure_;
      closure_ = NULL;
      return tmp;
    }

  private:
    Closure* closure_;
};

#endif  // BASE_BASE_H
